Component({
  options: {
    addGlobalClass: true,
    multipleSlots: true // 启用多 slot 支持
  },
  properties: {
    zIndex: {
      type: Number,
      value: 999
    },
    isShowClose: {
      type: Boolean,
      value: false
    },
    customHeader: {
      type: Boolean,
      value: false
    },
    title: {
      type: String,
      value: ''
    },
    desc: {
      type: String,
      value: ''
    },
    isDescAlignLeft: {
      type: Boolean,
      value: false
    },
    customFooter: {
      type: Boolean,
      value: false
    },
    cancelText: {
      type: String,
      value: ''
    },
    confirmText: {
      type: String,
      value: ''
    }
  },

  methods: {
    cancel() {
      this.triggerEvent('cancel');
    },
    confirm() {
      this.triggerEvent('confirm');
    },
    close() {
      this.triggerEvent('close');
    },
    nothing() {
      return;
    }
  }
});
